package com.ruoyi.common.utils.mapIp;

public class MapPoint {
    private double lng;
    private double lat;

    public MapPoint() { }

    public MapPoint(double lng, double lat) {
        this.lng = lng;
        this.lat = lat;
    }

    public double getLng() { return lng; }
    public void setLng(double lng) { this.lng = lng; }
    public double getLat() { return lat; }
    public void setLat(double lat) { this.lat = lat; }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof MapPoint) {
            MapPoint mapPoint = (MapPoint) obj;
            return (mapPoint.getLng() == lng && mapPoint.getLat() == lat);
        } else {
            return false;
        }
    }
}

